home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / ixemul-complete / ixemul / stack / makefile.in < prev    next >
Makefile  |  1996-08-13  |  1KB  |  61 lines

  1. #### Start of system configuration section. ####
  2.  
  3. srcdir =    @srcdir@
  4.  
  5. ifeq ($(srcdir),.)
  6. srcdir = ..
  7. endif
  8.  
  9. VPATH :=    $(srcdir)
  10.  
  11. # Common prefix for machine-independent installed files.
  12. prefix =    @prefix@
  13.  
  14. # Common prefix for machine-dependent installed files.
  15. exec_prefix =    @exec_prefix@
  16.  
  17. bindir =    $(exec_prefix)/bin
  18. libdir =    $(exec_prefix)/Sys/libs
  19.  
  20. INSTALL =    @INSTALL@
  21. INSTALL_DATA =    @INSTALL_DATA@
  22.  
  23. CC =        @CC@
  24.  
  25. CFLAGS =    @CFLAGS@
  26. LDFLAGS =    @LDFLAGS@
  27.  
  28. RANLIB =    @RANLIB@
  29. AR =        ar
  30.  
  31. #### End system configuration section ####
  32.  
  33. ifeq ($(BASE),baserel)
  34. DEFS = -DBASEREL
  35. endif
  36.  
  37. FLAVOR_CFLAGS =    -m$(CPU) -m$(FPU) -f$(BASE)
  38. OTHER_CFLAGS =    -fomit-frame-pointer
  39. ALL_CFLAGS =    $(CFLAGS) $(FLAVOR_CFLAGS) $(OTHER_CFLAGS) $(INCS) $(DEFS)
  40.  
  41. INCS =        -I$(srcdir) -I$(srcdir)/../library -I$(srcdir)/../include
  42. LIB =        libstack.a
  43.  
  44. .c.o:
  45.         $(CC) $(ALL_CFLAGS) -c $< -o $@
  46.  
  47. SRC =           $(notdir $(wildcard $(srcdir)/*.c))
  48.  
  49. OBJ =        $(SRC:.c=.o)
  50.  
  51. $(LIB):        $(OBJ)
  52.         rm -f $@
  53.         $(AR) rc $@ $(OBJ)
  54.         $(RANLIB) $@
  55.  
  56. clean:
  57.         rm -rf *baserel
  58.  
  59. clobber:    clean
  60.         rm -f Makefile
  61.